import { ThridTypeEnum } from "@/enums/LoginEnum";
import { EnvVersion } from "@/hooks/useEnv";

// 列表接口返回参数
export interface IResData<T = any> {
  records: T[];
  total: number;
  current: number;
  size: number;
}

export interface IBaseParam {
  pageNum: number
  pageSize: number
}

export interface IQuery {
  // 当前页
  current: number;
  // 每页条数
  size: number;
}

export interface IUploadImgFilesResData {
  imageId?: number;
  /**微信临时素材id */
  mediaId?: string;
  imagePathBig?: string;
  imagePathSmall?: string;
  urlDomain?: string;
  /** 文件本地临时地址 */
  tempFilePath?: string;
}

export interface IUploadFilesResData {
  fileId?: number;
  /** 文件cdn地址 */
  fileUrl?: string;
  /** 文件名称 */
  name?: string;
  urlDomain?: string;
  /** 文件本地临时地址 */
  tempFilePath?: string;
  /** 视频封面cdn地址 */
  imagePathSmall?: string;
  /** 视频缩略图临时文件路径 */
  thumbTempFilePath?: string;
}

export interface AppShareLogData {
  path: string;
  /** string json */
  query: string;
}
export interface AppShareLogResult {
  id: number
  path: string;
  /** string json */
  query: string
}

export interface IMiniProgramCodeData {
  scene: string;
  page: string;
  check_path: boolean;
  env_version: EnvVersion;
  tripartiteName: 'mini_yjr';
  thridType: ThridTypeEnum;
  width?: string;
}